package org.bigpigman.el.common;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Parameter;

/**
 * @Description
 * @Author 朱咸军
 * @Date 2019/12/25
 **/
public class ValidateTool {

    public static void notNullOorEmpty(Object obj, String message, Class<Exception> clazz) {
        if (obj == null) {

        }
    }

    public static void main(String[] args) throws IllegalAccessException, InstantiationException, InvocationTargetException {
        Class<StringToolException> clazz = StringToolException.class;
        Constructor<?>[] constructors = clazz.getDeclaredConstructors();
        Constructor<?> c = constructors[0];
        Parameter[] parameters = c.getParameters();
        for (Parameter p : parameters) {
            System.out.println(p.getName());
        }
    }
}
